package com.yan.design.two.establish.s2.f2.i;

import com.yan.design.two.establish.s2.f2.Apple;

/**
 * 2. 工厂方法
 *      苹果工厂 - 直接返回苹果对象
 * @author shengren.yan
 * @create 2022-07-17
 */
public class AppleFactory implements FruitFactory<Apple> {

    @Override
    public Apple getFruit() {
        return new Apple();
    }

}
